﻿using System;
using NETWORKLIST;

namespace BSonPosh.Network
{
	public class ConnectionInfo
	{
		private INetworkConnection _connection;

		public ConnectionInfo(INetworkConnection connection)
		{
			_connection = connection;
		}

		public Guid ConnectionId { get { return _connection.GetConnectionId(); } }
		public Guid AdapterId { get { return _connection.GetAdapterId(); } }
		public bool IsConnected { get { return _connection.IsConnected; } }
		public bool HasInternet { get { return _connection.IsConnectedToInternet; } }
		public Connectivity Connectivity { get { return (Connectivity)_connection.GetConnectivity(); } }
		public DomainType Domain { get { return (DomainType)_connection.GetDomainType(); } }
	}
}